from flask_wtf import FlaskForm
from wtforms import StringField, TextAreaField, SubmitField
from wtforms.validators import DataRequired, Length


class MsgBoard(FlaskForm):
    name = StringField('Name', validators=[DataRequired(), Length(1, 16)])
    body = TextAreaField('Body', validators=[DataRequired(), Length(4, 128)])
    submit = SubmitField()
